import request from '@/utils/http'

export function list(params: any) {
  return request({
    url: '/biosample/task/list',
    method: 'get',
    params
  });
}

export function add(data: any) {
  return request({
    url: '/biosample/task/save',
    method: 'post',
    data
  });
}

export function userdel( id: (number | undefined)[]) {
  return request({
    url: '/biosample/task/delete',
    method: 'post',
    data:id
  });
}

export function detail( id: number ) {
  return request({
    url: '/biosample/task/info/'+id,  
    method: 'get',
  });
}

export function updata(data: any) {
  return request({
    url: '/biosample/task/update',  
    method: 'put',
    data
  });
}